package com.wiegand.util {
	import flash.display.MovieClip;

	/**
	 * @author kw
	 */
	 
	public class ColorClip {	
			
		static public function create( color : Number, alpha : Number = 1, width : int = 1, height : int = 1, x : int = 0, y : int = 0 ) : MovieClip{
						
			var bg : MovieClip = new MovieClip();			
			bg.graphics.beginFill( color, alpha );
			bg.graphics.lineTo( 0, height );
			bg.graphics.lineTo( width, height );
			bg.graphics.lineTo( width, 0 );
			bg.graphics.lineTo( 0, 0 );
			bg.graphics.endFill();		
			
			bg.x = x;
			bg.y = y;
			
			return bg;
		
		}
	
	}
}
